var e = require("../../../utils/function.js"), n = require("../../../api.js"), a = getApp();

Page({
    data: {
        img: e.driverImg,
        driver: {},
        order: {},
        order_no: "",
        money_status: 0
    },
    intoPageHandler: function(n) {
        e.intoPageHandler(n.currentTarget.dataset.skip);
    },
    callPhoneHandler: function() {
        e.callPhoneHandler(wx.getStorageSync("serverPhone"));
    },
    onLoad: function(e) {
        this.setData({
            order_no: e.order_no
        }), e.uid && a.shareCouponsMessage(e.uid);
    },
    onReady: function() {},
    onShow: function() {
        var e = this;
        a.request({
            url: n.order.getfind,
            method: "post",
            data: {
                order_no: e.data.order_no
            },
            success: function(n) {
                e.setData({
                    order: n.data
                }), wx.setStorageSync("serverPhone", n.data.passenger_phone);
            }
        });
    },
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {
        var e = a.shareAppMessage().title, n = a.shareAppMessage().imageUrl, o = a.shareAppMessage().desc, r = a.shareAppMessage().path;
        return console.log(a.shareAppMessage()), {
            title: e,
            imageUrl: n,
            desc: o,
            path: r
        };
    }
});